﻿using System.Collections.Generic;

namespace Zocono.WCS.Admin.Models.User
{
    public class TableData
    {
        // 下面的用来封装数据的参数名都不能变，需要与 dataTables 对应
        public int draw { get; set; } //前台传过来的 sEcho 原封返回
        public int recordsTotal { get; set; } //存放总条数
        public int recordsFiltered { get; set; }//存放总条数

        public TableData() { }

        public TableData(int draw, int recordsTotal, int recordsFiltered)
        {
            this.draw = draw;
            this.recordsTotal = recordsTotal;
            this.recordsFiltered = recordsFiltered;
        }

    }
    public class TableData<T> : TableData
    {
        public TableData() { }
        public TableData(int draw, int recordsTotal, int recordsFiltered, List<T> data) : base(draw, recordsTotal, recordsFiltered)
        {
            this.data = data;
        }

        public List<T> data { get; set; }

    }
}
